#include "zucmodule_exceptions.h"

static PyObject* base_error;

PyObject * Exception_Create()
{
    base_error = PyErr_NewException("jkzuc.BaseError", PyExc_RuntimeError, NULL);
    Py_XINCREF(base_error);
    return base_error;
}

int32_t Exception_Destory()
{
    Py_XDECREF(base_error);
    Py_CLEAR(base_error);
    return 0;
}

PyObject * Exception_GetBaseError()
{
    return base_error;
}